<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>益泽供应链 - 专业供应链服务平台</title>
    <!-- 引入外部资源 -->
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    
    <!-- Tailwind 配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    // 自定义颜色配置
                    colors: {
                        primary: '#0070f3',
                        secondary: '#0056b3',
                        accent: '#ff4d4f',
                        light: '#f5f7fa',
                        dark: '#1f2937'
                    },
                    // 自定义字体配置
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    
    <!-- 自定义工具类和样式 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .text-shadow {
                text-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
            .transition-custom {
                transition: all 0.3s ease-in-out;
            }
            .card-hover {
                @apply hover:shadow-lg hover:-translate-y-1 transition-all duration-300;
            }
            .news-item-hover {
                @apply transition-all duration-300 hover:bg-blue-50 hover:shadow-md hover:pl-2 rounded cursor-pointer;
            }
            
            /* 弹窗相关样式 */
            .modal {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.7);
                z-index: 1000;
                align-items: center;
                justify-content: center;
                opacity: 0;
                transition: opacity 0.3s ease;
            }
            .modal.active {
                display: flex;
                opacity: 1;
            }
            .modal-content {
                background-color: white;
                border-radius: 10px;
                max-width: 90%;
                width: 800px;
                max-height: 80vh;
                overflow-y: auto;
                transform: scale(0.9);
                transition: transform 0.3s ease;
                position: relative;
            }
            .modal.active .modal-content {
                transform: scale(1);
            }
            .close-btn {
                position: absolute;
                top: 15px;
                right: 15px;
                color: #333;
                font-size: 24px;
                cursor: pointer;
                transition: color 0.3s ease;
                z-index: 10;
                width: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                background-color: rgba(255,255,255,0.8);
                box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            }
            .close-btn:hover {
                color: #ff4d4f;
                background-color: white;
            }
            
            /* 客户详情图片容器样式 - 确保尺寸固定 */
            .customer-detail-image-container {
                width: 290px;
                height: 360px;
                display: flex;
                align-items: center;
                justify-content: center;
                overflow: hidden;
            }
            
            /* 客户详情图片样式 - 强制尺寸 */
            .customer-detail-image {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover;
            }
            
            /* 查看更多链接样式 */
            .read-more-link {
                color: #0066cc;
                text-decoration: underline;
                font-weight: 500;
                cursor: pointer;
                transition: color 0.2s ease;
            }
            .read-more-link:hover {
                color: #004080;
            }
            
            /* 轮播图样式 */
            .carousel-item {
                opacity: 0;
                transition: opacity 1s ease-in-out;
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }
            .carousel-item.active {
                opacity: 1;
                z-index: 1;
            }
            
            /* 案例滚动动画 - 优化无缝滚动效果 */
            .testimonial-container {
                overflow: hidden;
                position: relative;
                width: 100%;
                padding: 10px 0; /* 缩小上下内边距 */
            }
            .testimonial-track {
                display: flex;
                width: auto;
                will-change: transform;
            }
            /* 优化滚动容器，确保足够空间显示所有卡片 */
            .testimonial-scroll {
                display: flex;
                width: auto;
                will-change: transform; /* 优化动画性能 */
            }
            /* 复制一份内容以实现无缝滚动效果 */
            .testimonial-scroll-duplicate {
                display: flex;
                width: auto;
            }
            
            /* 图标样式 */
            .custom-icon {
                width: 24px;
                height: 24px;
                object-fit: contain;
            }

            /* 客户案例卡片样式增强 - 彻底修复重叠问题 */
            .customer-card {
                transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                border: 1px solid transparent;
                flex-shrink: 0; /* 防止卡片被压缩 */
                padding: 8px; /* 缩小内部留白 */
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            
            /* 更细致的响应式调整 - 确保不同屏幕尺寸下都不重叠 */
            @media (max-width: 359px) {
                .customer-card {
                    width: 140px !important;
                    margin: 0 8px !important; /* 保持原有卡片间距 */
                }
            }
            @media (min-width: 360px) and (max-width: 479px) {
                .customer-card {
                    width: 160px !important;
                    margin: 0 10px !important; /* 保持原有卡片间距 */
                }
            }
            @media (min-width: 480px) and (max-width: 639px) {
                .customer-card {
                    width: 180px !important;
                    margin: 0 12px !important; /* 保持原有卡片间距 */
                }
            }
            @media (min-width: 640px) and (max-width: 767px) {
                .customer-card {
                    width: 200px !important;
                    margin: 0 15px !important; /* 保持原有卡片间距 */
                }
            }
            @media (min-width: 768px) and (max-width: 1023px) {
                .customer-card {
                    width: 220px !important;
                    margin: 0 18px !important; /* 保持原有卡片间距 */
                }
            }
            @media (min-width: 1024px) and (max-width: 1279px) {
                .customer-card {
                    width: 230px !important;
                    margin: 0 20px !important; /* 保持原有卡片间距 */
                }
            }
            @media (min-width: 1280px) {
                .customer-card {
                    width: 240px !important;
                    margin: 0 22px !important; /* 保持原有卡片间距 */
                }
            }
            
            .customer-card:hover {
                border-color: #0070f3;
                box-shadow: 0 10px 25px -5px rgba(0, 112, 243, 0.1), 0 8px 10px -6px rgba(0, 112, 243, 0.1);
            }
            .customer-card img {
                transition: transform 0.5s ease;
            }
            .customer-card:hover img {
                transform: scale(1.05);
            }

            /* 客户行业标签样式 */
            .industry-tag {
                position: absolute;
                top: 6px; /* 缩小标签与顶部距离 */
                left: 6px; /* 缩小标签与左侧距离 */
                background-color: rgba(0, 112, 243, 0.8);
                color: white;
                font-size: 10px;
                padding: 2px 6px;
                border-radius: 4px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                z-index: 1; /* 确保标签在图片上方 */
            }
            
            /* 头像容器样式 - 确保图片居中 */
            .avatar-container {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 0;
                padding-bottom: 100%; /* 保持圆形比例 */
                position: relative;
                margin: 0 auto 10px; /* 缩小头像与下方内容间距 */
            }
            
            .avatar-container img {
                position: absolute;
                top: 0;
                left: 0;
                width: 100% !important;
                height: 100% !important;
                object-fit: cover;
            }
        }
    </style>
</head>

<body class="bg-gray-50 font-sans text-gray-800">
    <!-- 顶部快捷导航 -->
    <div class="bg-blue-600 text-white text-sm">
        <div class="container mx-auto px-4 py-2 flex justify-between items-center">
            <div class="hidden md:flex space-x-4">
                <a href="#" class="hover:text-blue-100 transition-custom">设为首页</a>
                <a href="#" class="hover:text-blue-100 transition-custom">新闻资讯</a>
                <a href="#" class="hover:text-blue-100 transition-custom">加入收藏</a>
                <a href="#" class="hover:text-blue-100 transition-custom">在线留言</a>
                <a href="#" class="hover:text-blue-100 transition-custom">企业位置</a>
                <a href="#" class="hover:text-blue-100 transition-custom">手机站</a>
            </div>
        </div>
    </div>

    <!-- 头部Logo和搜索 -->
    <header class="bg-white shadow-sm">
        <div class="container mx-auto px-4 py-4 flex flex-col md:flex-row justify-between items-center">
            <div class="flex items-center mb-4 md:mb-0">
                <img src="https://i.imgs.ovh/2025/09/23/7A0u84.png" alt="益泽供应链 logo" class="h-12 md:h-16 object-contain">
            </div>
        </div>
    </header>

    <!-- 轮播图区域 -->
    <div class="relative h-[400px] bg-gray-200 overflow-hidden">
        <div class="carousel relative h-full">
            <!-- 轮播图1 -->
            <div class="carousel-item active">
                <img src="https://img.cdn1.vip/i/68d3a9ffb6ade_1758702079.webp" alt="供应链服务展示轮播图1" class="w-full h-full object-cover">
                <div class="absolute inset-0 bg-black bg-opacity-30 flex items-center">
                    <div class="container mx-auto px-4 text-white">
                        <h2 class="text-3xl md:text-5xl font-bold mb-4">专业供应链服务</h2>
                        <p class="text-lg md:text-xl mb-6 max-w-2xl">高效、可靠的供应链解决方案，助力企业发展</p>
                        <a href="#" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded inline-block transition-custom">立即咨询</a>
                    </div>
                </div>
            </div>
            
            <!-- 轮播图2 -->
            <div class="carousel-item">
                <img src="https://picsum.photos/id/1071/1200/400" alt="供应链服务展示轮播图2" class="w-full h-full object-cover">
                <div class="absolute inset-0 bg-black bg-opacity-30 flex items-center">
                    <div class="container mx-auto px-4 text-white">
                        <h2 class="text-3xl md:text-5xl font-bold mb-4">智能供应链管理系统</h2>
                        <p class="text-lg md:text-xl mb-6 max-w-2xl">数字化管理，实时监控，提升供应链效率</p>
                        <a href="#" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded inline-block transition-custom">了解系统</a>
                    </div>
                </div>
            </div>
            
            <!-- 轮播图3 -->
            <div class="carousel-item">
                <img src="https://picsum.photos/id/1073/1200/400" alt="供应链服务展示轮播图3" class="w-full h-full object-cover">
                <div class="absolute inset-0 bg-black bg-opacity-30 flex items-center">
                    <div class="container mx-auto px-4 text-white">
                        <h2 class="text-3xl md:text-5xl font-bold mb-4">定制化解决方案</h2>
                        <p class="text-lg md:text-xl mb-6 max-w-2xl">根据企业需求定制专属方案，灵活高效</p>
                        <a href="#" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded inline-block transition-custom">在线申请</a>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 轮播指示器 -->
        <div class="absolute bottom-4 left-0 right-0 flex justify-center space-x-2 z-20">
            <button class="w-3 h-3 rounded-full bg-white opacity-100 carousel-indicator active" data-index="0"></button>
            <button class="w-3 h-3 rounded-full bg-white opacity-50 carousel-indicator" data-index="1"></button>
            <button class="w-3 h-3 rounded-full bg-white opacity-50 carousel-indicator" data-index="2"></button>
        </div>
    </div>

    <!-- 成功案例区域 - 完整客户案例展示模块 -->
    <section class="py-12 bg-white"> <!-- 缩小整个区块的上下间距 -->
        <div class="container mx-auto px-4">
            <div class="bg-white rounded-2xl p-6 shadow-lg"> <!-- 缩小容器内边距 -->
                <h2 class="text-3xl font-bold text-center mb-1 text-blue-600">荣耀时刻</h2> <!-- 缩小标题下方间距 -->
                <p class="text-center text-gray-500 mb-6">Success Cases</p> <!-- 缩小描述下方间距 -->
                
                <!-- 滚动展示的客户案例容器 - 优化无缝滚动效果 -->
                <div class="relative overflow-hidden py-4"> <!-- 缩小滚动容器的上下内边距 -->
                    <div class="testimonial-container relative">
                        <!-- 滚动轨道包含原始内容和复制内容，实现无缝滚动 -->
                        <div class="testimonial-track" id="testimonialTrack">
                            <div class="testimonial-scroll" id="customerCasesContainer">
                                <!-- 客户案例将通过JavaScript动态生成 -->
                            </div>
                            <div class="testimonial-scroll-duplicate" id="customerCasesContainerDuplicate">
                                <!-- 复制的客户案例将通过JavaScript动态生成 -->
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 手动控制按钮 -->
                <div class="flex justify-center mt-4 space-x-4"> <!-- 缩小按钮区域的上边距 -->
                    <button id="scrollLeft" class="bg-blue-100 hover:bg-blue-200 text-blue-600 px-4 py-2 rounded-full transition-all duration-300 flex items-center text-sm"> <!-- 缩小按钮文字 -->
                        <i class="fa fa-chevron-left mr-2"></i> 向左查看
                    </button>
                    <button id="scrollRight" class="bg-blue-100 hover:bg-blue-200 text-blue-600 px-4 py-2 rounded-full transition-all duration-300 flex items-center text-sm"> <!-- 缩小按钮文字 -->
                        向右查看 <i class="fa fa-chevron-right ml-2"></i>
                    </button>
                </div>
                
                <!-- 优惠信息区域 -->
                <div class="mt-8 bg-blue-600 text-white p-5 rounded-lg"> <!-- 缩小优惠区域的上边距和内边距 -->
                    <div class="flex flex-col md:flex-row justify-between items-center">
                        <div class="mb-3 md:mb-0"> <!-- 缩小移动端下边距 -->
                            <h3 class="text-xl font-bold mb-1">加入益泽、放心、可靠</h3> <!-- 缩小标题字体 -->
                            <p>专业供应链服务解决方案</p>
                        </div>
                        <div class="flex items-center">
                            <i class="fa fa-phone-square text-2xl mr-3"></i> <!-- 缩小图标 -->
                            <div>
                                <p class="text-sm">立即咨询</p>
                                <p class="text-xl font-bold">0635-8688810</p> <!-- 缩小电话号码字体 -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 新闻资讯模块 - 缩小版本 -->
    <section class="py-8 bg-white" id="news-section"> <!-- 减少整体上下间距 -->
        <div class="container mx-auto px-4">
            <div class="bg-white rounded-xl p-4 shadow-md"> <!-- 减少容器内边距和圆角 -->
                <!-- 新闻标题区域 -->
                <div class="news-header mb-4 ml-3"> <!-- 大幅减少外边距和左侧缩进 -->
                    <h2 class="text-2xl font-bold text-center mb-1 text-blue-600">新闻资讯</h2> <!-- 缩小标题字体 -->
                    <p class="text-center text-gray-500 text-sm">News</p> <!-- 缩小描述字体 -->
                </div>
                
                <!-- 新闻内容展示区域 -->
                <div class="news-content ml-3"> <!-- 减少左侧缩进 -->
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> <!-- 减少网格间距 -->
                        <!-- 左侧图片新闻 - ID 0,1,2 -->
                        <div class="md:col-span-1 space-y-3" id="news-image-container"> <!-- 减少垂直间距 -->
                            <!-- 新闻条目将通过JavaScript动态生成 -->
                        </div>
                        
                        <!-- 右侧新闻列表 - ID 3-10 -->
                        <div class="md:col-span-2 space-y-3 bg-white rounded-lg p-3 shadow-sm" id="news-list-container"> <!-- 减少内边距、间距和圆角 -->
                            <div class="news-items-container" id="news-list">
                                <!-- 新闻条目将通过JavaScript动态生成 -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 新闻弹窗组件 -->
    <div id="newsModal" class="modal">
        <div class="modal-content p-6">
            <span class="close-btn">×</span>
            <div class="flex flex-col md:flex-row gap-6">
                <div class="md:w-1/3">
                    <img id="newsModalImage" src="" alt="新闻图片" class="w-full h-auto rounded-lg shadow-md">
                </div>
                <div class="md:w-2/3">
                    <h2 id="newsModalTitle" class="text-2xl font-bold mb-4 text-blue-600"></h2>
                    <p id="newsModalDate" class="text-gray-500 mb-6"></p>
                    <div class="prose max-w-none">
                        <div id="newsModalContent" class="text-gray-700 leading-relaxed mb-6"></div>
                        <!-- 新闻查看更多链接容器 -->
                        <div id="news-read-more-container"></div>
                    </div>
                    <div class="flex justify-between items-center pt-4 border-t border-gray-200">
                        <div class="flex space-x-2" id="newsModalTags">
                            <!-- 新闻标签将通过JavaScript动态生成 -->
                        </div>
                        <div class="flex space-x-4">
                            <button class="text-gray-500 hover:text-blue-600 transition-colors">
                                <i class="fa fa-share-alt mr-1"></i> 分享
                            </button>
                            <button class="text-gray-500 hover:text-blue-600 transition-colors">
                                <i class="fa fa-star-o mr-1"></i> 收藏
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </section>

    <!-- 益泽客户有话说区域 -->
    <section class="py-12 bg-gray-50">
        <div class="container mx-auto px-4">
            <div class="bg-white rounded-2xl p-8 shadow-lg">
                <h2 class="text-3xl font-bold text-center mb-2 text-blue-600">益泽客户有话说</h2>
                
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mt-10">
                    <!-- 客户问题1-4 -->
                    <div class="bg-white p-6 rounded shadow-sm card-hover">
                        <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4">
                            <img src="https://img.cdn1.vip/i/68d38de3224d8_1758694883.webp" alt="用户图标" class="custom-icon">
                        </div>
                        <h3 class="font-semibold text-lg mb-2">中小企业如何选择供应链服务？</h3>
                        <p class="text-gray-600 text-sm">根据企业规模和需求选择合适方案，益泽提供灵活的服务套餐，适合各类企业</p>
                    </div>
                    
                    <div class="bg-white p-6 rounded shadow-sm card-hover">
                        <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4">
                            <img src="https://picsum.photos/id/1013/24/24" alt="检查图标" class="custom-icon">
                        </div>
                        <h3 class="font-semibold text-lg mb-2">供应链优化能为企业带来什么？</h3>
                        <p class="text-gray-600 text-sm">平均降低成本10-20%，提高效率30%以上，让企业专注核心业务发展</p>
                    </div>
                    
                    <div class="bg-white p-6 rounded shadow-sm card-hover">
                        <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4">
                            <img src="https://picsum.photos/id/1014/24/24" alt="齿轮图标" class="custom-icon">
                        </div>
                        <h3 class="font-semibold text-lg mb-2">智能系统vs传统管理</h3>
                        <p class="text-gray-600 text-sm">智能系统实时监控全流程，预警潜在问题，比传统管理更高效、更精准</p>
                    </div>
                    
                    <div class="bg-white p-6 rounded shadow-sm card-hover">
                        <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4">
                            <img src="https://picsum.photos/id/1015/24/24" alt="金钱图标" class="custom-icon">
                        </div>
                        <h3 class="font-semibold text-lg mb-2">如何控制供应链成本？</h3>
                        <p class="text-gray-600 text-sm">通过优化流程、集中采购、智能调度等方式，有效降低供应链整体成本</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 服务方案区域 -->
    <section class="py-12 bg-white">
        <div class="container mx-auto px-4">
            <div class="bg-white rounded-2xl p-8 shadow-lg">
                <h2 class="text-3xl font-bold text-center mb-2 text-blue-600">服务方案</h2>
                <p class="text-center text-gray-500 mb-10">Professional Supply Chain Solutions</p>
                
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
                    <!-- 方案1-4 -->
                    <div class="bg-gray-50 rounded-lg overflow-hidden shadow-sm card-hover">
                        <img src="https://picsum.photos/id/1071/400/300" alt="基础供应链管理方案" class="w-full h-48 object-cover">
                        <div class="p-4">
                            <h3 class="font-semibold text-lg mb-1">个人供应链管理方案</h3>
                            <p class="text-gray-500 text-sm mb-3">适用：个人</p>
                            <div class="flex justify-between items-center">
                                <div>
                                    <span class="bg-red-500 text-white text-xs px-2 py-1 rounded">专业服务</span>
                                    <span class="text-gray-600 text-xs ml-2">定制化方案</span>
                                </div>
                                <div class="text-lg font-bold text-red-500">¥600/月</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-gray-50 rounded-lg overflow-hidden shadow-sm card-hover">
                        <img src="https://picsum.photos/id/1072/400/300" alt="企业级供应链解决方案" class="w-full h-48 object-cover">
                        <div class="p-4">
                            <h3 class="font-semibold text-lg mb-1">企业级供应链解决方案</h3>
                            <p class="text-gray-500 text-sm mb-3">适用：中型企业</p>
                            <div class="flex justify-between items-center">
                                <div>
                                    <span class="bg-red-500 text-white text-xs px-2 py-1 rounded">智能管理</span>
                                    <span class="text-gray-600 text-xs ml-2">全流程优化</span>
                                </div>
                                <div class="text-lg font-bold text-red-500">¥5,679/月</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-gray-50 rounded-lg overflow-hidden shadow-sm card-hover">
                        <img src="https://picsum.photos/id/1073/400/300" alt="集团化供应链系统" class="w-full h-48 object-cover">
                        <div class="p-4">
                            <h3 class="font-semibold text-lg mb-1">集团化供应链系统</h3>
                            <p class="text-gray-500 text-sm mb-3">适用：大型企业/集团</p>
                            <div class="flex justify-between items-center">
                                <div>
                                    <span class="bg-red-500 text-white text-xs px-2 py-1 rounded">定制开发</span>
                                    <span class="text-gray-600 text-xs ml-2">全球供应链</span>
                                </div>
                                <div class="text-lg font-bold text-red-500">¥8,999/月</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-gray-50 rounded-lg overflow-hidden shadow-sm card-hover">
                        <img src="https://picsum.photos/id/1074/400/300" alt="跨境电商专属方案" class="w-full h-48 object-cover">
                        <div class="p-4">
                            <h3 class="font-semibold text-lg mb-1">跨境电商专属方案</h3>
                            <p class="text-gray-500 text-sm mb-3">适用：进出口贸易企业</p>
                            <div class="flex justify-between items-center">
                                <div>
                                    <span class="bg-red-500 text-white text-xs px-2 py-1 rounded">关务优化</span>
                                    <span class="text-gray-600 text-xs ml-2">跨境物流</span>
                                </div>
                                <div class="text-lg font-bold text-red-500">¥6,899/月</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚区域 -->
    <footer class="bg-blue-600 text-white py-10">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
                <!-- 公司信息 -->
                <div>
                    <h3 class="text-xl font-bold mb-4">益泽供应链</h3>
                    <p class="mb-4 text-gray-100">专业供应链服务平台</p>
                    <p class="text-2xl font-bold mb-2">0635-8688810</p>
                    <p class="text-gray-100">工作时间: 9:00-21:00</p>
                </div>

                <!-- 快速链接 -->
                <div>
                    <h3 class="text-xl font-bold mb-4">快速链接</h3>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-100 hover:text-white transition-colors duration-300">网站首页</a></li>
                        <li><a href="#" class="text-gray-100 hover:text-white transition-colors duration-300">关于我们</a></li>
                        <li><a href="#" class="text-gray-100 hover:text-white transition-colors duration-300">益泽公益</a></li>
                        <li><a href="#" class="text-gray-100 hover:text-white transition-colors duration-300">人才招聘</a></li>
                        <li><a href="#news-section" class="text-gray-100 hover:text-white transition-colors duration-300">公司新闻</a></li>
                    </ul>
                </div>

                <!-- 联系我们 -->
                <div>
                    <h3 class="text-xl font-bold mb-4">联系我们</h3>
                    <ul class="space-y-2">
                        <li class="flex items-start">
                            <i class="fa fa-map-marker mt-1 mr-3 text-gray-100"></i>
                            <span class="text-gray-100">地址: 聊城市蒋官屯派出所对面益泽供应链</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-phone mr-3 text-gray-100"></i>
                            <span class="text-gray-100">电话: 0635-8688810</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-envelope mr-3 text-gray-100"></i>
                            <span class="text-gray-100">邮箱: 57432563@qq.com</span>
                        </li>
                    </ul>
                </div>

                <!-- 微信公众号 -->
                <div>
                    <h3 class="text-xl font-bold mb-4">微信公众号</h3>
                    <div class="bg-white p-2 inline-block rounded shadow-lg">
                        <img src="https://p3-flow-imagex-download-sign.byteimg.com/tos-cn-i-a9rns2rl98/9705d4d150c24e22bd80058ee8a982b4.png" alt="益泽供应链微信公众号二维码" class="w-32 h-32 object-cover">
                    </div>
                </div>
            </div>

            <hr class="border-gray-600 my-6">

            <!-- 版权信息 -->
            <div class="text-center text-gray-200 text-sm">
                <p>Copyright © 2025 聊城益泽供应链管理有限公司 鲁ICP备16046382号</p>
            </div>
        </div>

        <!-- 回到顶部按钮 -->
        <button id="backToTop" class="fixed bottom-6 right-6 bg-blue-700 hover:bg-blue-800 text-white w-10 h-10 rounded-full flex items-center justify-center shadow-lg transition-all duration-300">
            <i class="fa fa-arrow-up"></i>
        </button>
    </footer>

    <!-- 客户案例弹窗 -->
    <div id="customerModal" class="modal">
        <div class="modal-content p-6">
            <span class="close-btn">×</span>
            <div class="flex flex-col md:flex-row gap-6">
                <div class="md:w-1/3 flex justify-center md:justify-start">
                    <div class="customer-detail-image-container rounded-lg shadow-md">
                        <img id="modalImage" src="" alt="客户大图" class="customer-detail-image">
                    </div>
                </div>
                <div class="md:w-2/3">
                    <h2 id="modalName" class="text-2xl font-bold mb-4 text-blue-600"></h2>
                    <div class="bg-gray-50 p-4 rounded-lg mb-4">
                        <p id="modalQuote" class="italic text-gray-700"></p>
                    </div>
                    <h3 class="text-xl font-semibold mb-2">项目详情</h3>
                    <p id="modalDetails" class="text-gray-600 mb-4"></p>
                    <div class="flex flex-wrap gap-2 mb-4">
                        <span id="modalTag1" class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full"></span>
                        <span id="modalTag2" class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full"></span>
                        <span id="modalTag3" class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full"></span>
                    </div>
                    <div class="text-sm text-gray-500">
                        <p id="modalDate"></p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- JavaScript 功能实现 -->
    <script>
        // 轮播图模块
        const CarouselModule = (function() {
            let currentSlide = 0;
            
            // 初始化轮播图
            function init() {
                setupEventListeners();
                startAutoPlay();
            }

            // 设置事件监听器
            function setupEventListeners() {
                const indicators = document.querySelectorAll('.carousel-indicator');
                
                // 为指示器添加点击事件
                indicators.forEach((indicator, index) => {
                    indicator.addEventListener('click', () => {
                        showSlide(index);
                    });
                });
            }

            // 显示指定幻灯片
            function showSlide(index) {
                const carouselItems = document.querySelectorAll('.carousel-item');
                const indicators = document.querySelectorAll('.carousel-indicator');
                
                // 隐藏所有幻灯片
                carouselItems.forEach(item => {
                    item.classList.remove('active');
                });
                
                // 重置所有指示器
                indicators.forEach(indicator => {
                    indicator.classList.remove('active');
                    indicator.style.opacity = '0.5';
                });
                
                // 显示当前幻灯片
                carouselItems[index].classList.add('active');
                
                // 激活当前指示器
                indicators[index].classList.add('active');
                indicators[index].style.opacity = '1';
                
                currentSlide = index;
            }

            // 开始自动播放
            function startAutoPlay() {
                setInterval(() => {
                    const carouselItems = document.querySelectorAll('.carousel-item');
                    let nextSlide = (currentSlide + 1) % carouselItems.length;
                    showSlide(nextSlide);
                }, 5000);
            }

            // 暴露公共方法
            return {
                init: init
            };
        })();

        // 客户案例管理模块 - 完整的客户案例展示模块
        const CustomerCasesModule = (function() {
            // 客户案例数据 - 15个客户
            const customerData = [
                {
                    id: 1,
                    name: "宗业峰",
                    quote: "加入益泽供应链，牛、靠谱",
                    image: "https://img.cdn1.vip/i/68d39ba842a46_1758698408.webp",
                    details: "宗业峰在与益泽供应链合作一年期间，深切感受到其专业高效的服务水准与值得托付的合作态度，为表达认可与感谢，于2025年4月30日特向益泽供应链赠送一面印着 “牛、靠谱” 的锦旗，以此彰显对其团队综合实力的高度肯定。",
                    tags: ["带车加入", "牛", "靠谱"],
                    date: "合作时间：2024年8月至今",
                    industry: "台前县"
                },
                {
                    id: 2,
                    name: "郭超群",
                    quote: "服务专业，响应迅速",
                    image: "https://img.cdn1.vip/i/68d39d5d3b849_1758698845.webp",
                    details: "郭超群在加入益泽供应链后，深切感受到团队始终秉持 “热情服务，心系司机” 的理念，用贴心举措解决司机需求、以专业态度保障合作顺畅，为表达这份认可与感谢，他特意为益泽供应链送上一面印有该内容的锦旗，以此彰显对团队服务初心的高度肯定。",
                    tags: ["心系司机", "热情服务", "应急响应"],
                    date: "合作时间：2024年9月至今",
                    industry: "邹城市"
                },
                {
                    id: 3,
                    name: "李敬坡",
                    quote: "系统化方案，效率提升明显",
                    image: "https://img.cdn1.vip/i/68d3a101235bb_1758699777.webp",
                    details: "李敬坡在加入并与益泽供应链携手同行的过程中，深切感受到其在业务对接时高效规范、事事落地的专业素养，以及在服务司机群体时热心周到、贴心解难的责任担当，为表达这份认可与谢意，特向益泽供应链赠送一面印有 “高效规范办实事、热心贴心为司机” 的锦旗，以此肯定其优质服务与人文关怀。",
                    tags: ["热心", "贴心", "服务周到"],
                    date: "合作时间：2024年8月至今",
                    industry: "东昌府区"
                },
                {
                    id: 4,
                    name: "路泽东",
                    quote: "定制方案很贴合我们的需求",
                    image: "https://img.cdn1.vip/i/68d3a21e74049_1758700062.webp",
                    details: "路泽东在加入益泽供应链后，通过日常合作深切感受到团队始终将司机需求放在心上的责任担当、始终如一的热情服务态度，以及凭借优质口碑稳步发展的专业追求，为表达这份认可与感谢，特向益泽供应链赠送一面印着 “心系司机、热情服务、靠口碑一路前行” 的锦旗，以此传递对其服务理念与发展模式的高度赞同。",
                    tags: ["口碑", "定制方案", "合规管理"],
                    date: "合作时间：2024年9月至今",
                    industry: "临清市"
                },
                {
                    id: 5,
                    name: "郭安磊",
                    quote: "合作愉快，期待长期合作",
                    image: "https://img.cdn1.vip/i/68d3a2e1a9bae_1758700257.webp",
                    details: "郭安磊在加入益泽供应链后，通过日常合作深切感受到其服务的温度与保障的力度 —— 不仅享受到贴心周到的对接服务与和蔼友善的沟通态度，更因始终稳定充足的货源解决了核心需求，切实体会到其对司机群体的用心关怀，为表达这份认可与感谢，他特意为益泽供应链赠送一面印有 “贴心服务、态度和蔼、货源充足、司机福音” 的锦旗，以此传递对其专业能力与人文关怀的双重赞誉。",
                    tags: ["食品", "物流", "长期合作"],
                    date: "合作时间：2025年2月至今",
                    industry: "冠县"
                },
                {
                    id: 6,
                    name: "张荣斌",
                    quote: "心系司机办实事",
                    image: "https://img.cdn1.vip/i/68d3a3bdccfbd_1758700477.webp",
                    details: "张荣斌在加入益泽供应链后，切实体会到团队在运营管理上的严谨高效与主动担当，更被其始终心系司机、积极为司机解决实际问题的务实作风所打动，为表达由衷的认可与感谢，特向益泽供应链赠送一面印有 “管理到位有担当，心系司机办实事” 的锦旗，以此传递对其优质服务与责任担当的高度赞誉。",
                    tags: ["有担当", "办实事"],
                    date: "合作时间：2024年8月至今",
                    industry: "冠县"
                },
                {
                    id: 7,
                    name: "李宁",
                    quote: "靠谱企业、牛",
                    image: "https://img.cdn1.vip/i/68d3a45278aa3_1758700626.webp",
                    details: "李宁在加入益泽供应链后，亲身体验到企业专业严谨的运营模式与值得信赖的服务品质，为表达对其综合实力的认可与赞许，特向益泽供应链赠送一面印着“靠谱企业、牛”的锦旗，以此彰显对这家合作伙伴的高度肯定。",
                    tags: ["靠谱企业", "物流效率", "客户满意"],
                    date: "合作时间：2025年3月至今",
                    industry: "茌平区"
                },
                {
                    id: 8,
                    name: "马玉刚",
                    quote: "心系司机、排忧解难、领导有方、共创佳绩",
                    image: "https://img.cdn1.vip/i/68d3a50500d02_1758700805.webp",
                    details: "马玉刚在加入益泽供应链后，深刻感受到团队始终将司机需求放在心上、积极主动为大家排忧解难，更钦佩管理层凭借卓越能力做到领导有方、带领全体成员携手聚力共创佳绩，为表达这份由衷的认可与感谢，他特意为益泽供应链送上一面印有“心系司机、排忧解难、领导有方、共创佳绩”的锦旗。",
                    tags: ["心系司机", "排忧解难", "领导有方"],
                    date: "合作时间：2024年10月至今",
                    industry: "高唐县"
                },
                {
                    id: 9,
                    name: "王建国",
                    quote: "服务一流，值得信赖",
                    image: "https://picsum.photos/id/1012/400/400",
                    details: "王建国在与益泽供应链合作半年后，对其专业的服务水平和高效的响应能力给予高度评价。他表示，益泽团队不仅提供了优质的供应链解决方案，还在关键时刻提供了及时的支持，帮助企业渡过难关。",
                    tags: ["服务一流", "值得信赖", "高效响应"],
                    date: "合作时间：2024年11月至今",
                    industry: "阳谷县"
                },
                {
                    id: 10,
                    name: "赵志强",
                    quote: "智能系统提升效率显著",
                    image: "https://picsum.photos/id/1025/400/400",
                    details: "赵志强的企业在引入益泽供应链的智能管理系统后，运营效率提升了40%，人力成本降低了25%。他特别赞赏系统的数据分析功能，能够精准预测市场需求，帮助企业做出更明智的决策。",
                    tags: ["智能系统", "效率提升", "数据分析"],
                    date: "合作时间：2024年7月至今",
                    industry: "莘县"
                },
                {
                    id: 11,
                    name: "孙秀丽",
                    quote: "定制化服务满足特殊需求",
                    image: "https://picsum.photos/id/1062/400/400",
                    details: "孙秀丽经营的特色农产品企业有特殊的物流需求，益泽供应链为其量身定制了冷链物流解决方案，确保产品新鲜度的同时降低了损耗率。他表示益泽团队的专业度和责任心令人印象深刻。",
                    tags: ["定制服务", "冷链物流", "农产品"],
                    date: "合作时间：2025年1月至今",
                    industry: "东阿县"
                },
                {
                    id: 12,
                    name: "陈光明",
                    quote: "全方位支持，合作无忧",
                    image: "https://picsum.photos/id/1074/400/400",
                    details: "陈光明的跨境电商企业在与益泽供应链合作后，解决了长期困扰的清关和国际物流问题。他特别感谢益泽团队提供的全方位支持，从合规咨询到物流方案设计，让国际业务开展更加顺畅。",
                    tags: ["跨境电商", "国际物流", "合规咨询"],
                    date: "合作时间：2024年6月至今",
                    industry: "开发区"
                },
                {
                    id: 13,
                    name: "刘雪峰",
                    quote: "成本控制出色，服务不打折",
                    image: "https://picsum.photos/id/1075/400/400",
                    details: "刘雪峰对益泽供应链在成本控制方面的能力给予高度评价。在合作期间，益泽通过优化物流路线和整合资源，帮助其企业降低了18%的供应链成本，同时服务质量丝毫没有下降。",
                    tags: ["成本控制", "资源整合", "优质服务"],
                    date: "合作时间：2024年5月至今",
                    industry: "高新区"
                },
                {
                    id: 14,
                    name: "周红梅",
                    quote: "应急响应迅速，值得信赖",
                    image: "https://picsum.photos/id/1083/400/400",
                    details: "周红梅的企业在一次突发物流危机中得到了益泽供应链的大力支持，益泽团队在24小时内制定并执行了应急方案，最大限度减少了损失。她表示益泽的应急响应能力和专业素养令人钦佩。",
                    tags: ["应急响应", "危机处理", "专业素养"],
                    date: "合作时间：2024年12月至今",
                    industry: "度假区"
                },
                {
                    id: 15,
                    name: "郑海涛",
                    quote: "长期合作，共同成长",
                    image: "https://picsum.photos/id/1084/400/400",
                    details: "郑海涛与益泽供应链合作已两年有余，见证了彼此的成长。他表示益泽不仅是优秀的供应链服务提供商，更是值得信赖的合作伙伴，在企业发展的关键节点给予了重要支持。",
                    tags: ["长期合作", "共同成长", "战略伙伴"],
                    date: "合作时间：2023年3月至今",
                    industry: "阳信县"
                }
            ];

            // 初始化客户案例展示
            function init() {
                renderCustomerCases();
                setupEventListeners();
                initScrollAnimation();
                initManualScrollControls();
            }

            // 渲染客户案例卡片 - 确保所有15个案例完整显示
            function renderCustomerCases() {
                const container = document.getElementById('customerCasesContainer');
                const duplicateContainer = document.getElementById('customerCasesContainerDuplicate');
                
                if (!container || !duplicateContainer) return;

                // 清空容器
                container.innerHTML = '';
                duplicateContainer.innerHTML = '';

                // 遍历数据生成卡片
                customerData.forEach(customer => {
                    // 创建原始卡片
                    const card = createCustomerCard(customer);
                    container.appendChild(card);
                    
                    // 创建复制卡片（用于无缝滚动）
                    const duplicateCard = createCustomerCard(customer);
                    duplicateContainer.appendChild(duplicateCard);
                });
                
                // 确保容器宽度足够显示所有卡片
                ensureContainerWidth();
            }
            
            // 精确计算容器宽度，确保所有卡片都能显示
            function ensureContainerWidth() {
                const container = document.getElementById('customerCasesContainer');
                if (!container) return;
                
                // 强制回流以获取准确尺寸
                container.offsetHeight;
                
                // 计算所有卡片总宽度（包括间距）
                let totalWidth = 0;
                const cards = container.querySelectorAll('.customer-card');
                
                cards.forEach(card => {
                    // 获取卡片实际宽度（包括padding和border）
                    const cardWidth = card.offsetWidth;
                    // 获取卡片左右margin
                    const style = window.getComputedStyle(card);
                    const marginLeft = parseFloat(style.marginLeft);
                    const marginRight = parseFloat(style.marginRight);
                    
                    // 累加总宽度
                    totalWidth += cardWidth + marginLeft + marginRight;
                });
                
                // 增加额外的安全宽度，防止边缘重叠
                totalWidth += 60;
                
                // 设置容器宽度为卡片总宽度，确保所有卡片都能显示
                container.style.width = `${totalWidth}px`;
                document.getElementById('customerCasesContainerDuplicate').style.width = `${totalWidth}px`;
                
                // 设置轨道宽度为两倍（原始+复制）
                document.getElementById('testimonialTrack').style.width = `${totalWidth * 2}px`;
                
                return totalWidth;
            }
            
            // 创建客户案例卡片
            function createCustomerCard(customer) {
                const card = document.createElement('div');
                card.className = 'bg-gray-50 rounded-lg p-6 text-center shadow-sm card-hover customer-card relative';
                card.setAttribute('data-id', customer.id);
                card.setAttribute('data-industry', customer.industry);
                
                // 强制应用卡片宽度，解决重叠问题
                let cardWidth = '240px';
                let margin = '0 22px';
                
                if (window.innerWidth < 360) {
                    cardWidth = '140px';
                    margin = '0 8px';
                } else if (window.innerWidth < 480) {
                    cardWidth = '160px';
                    margin = '0 10px';
                } else if (window.innerWidth < 640) {
                    cardWidth = '180px';
                    margin = '0 12px';
                } else if (window.innerWidth < 768) {
                    cardWidth = '200px';
                    margin = '0 15px';
                } else if (window.innerWidth < 1024) {
                    cardWidth = '220px';
                    margin = '0 18px';
                } else if (window.innerWidth < 1280) {
                    cardWidth = '230px';
                    margin = '0 20px';
                }
                
                card.style.width = cardWidth;
                card.style.margin = margin;
                
                card.innerHTML = `
                    <span class="industry-tag">${customer.industry}</span>
                    <div class="w-36 h-36 mx-auto mb-4 rounded-full overflow-hidden border-5 border-blue-100 cursor-pointer avatar-container">
                        <img src="${customer.image}" alt="${customer.name}" class="w-full h-full object-cover">
                    </div>
                    <h3 class="font-semibold mb-1">${customer.name}</h3>
                    <p class="text-sm text-gray-600">"${customer.quote}"</p>
                `;
                
                return card;
            }

            // 初始化滚动动画
            function initScrollAnimation() {
                const containerWidth = ensureContainerWidth();
                const track = document.getElementById('testimonialTrack');
                let scrollPosition = 0;
                let animationFrameId;
                let isAutoScrolling = true;
                
                // 自动滚动函数
                function autoScroll() {
                    if (!isAutoScrolling) {
                        animationFrameId = requestAnimationFrame(autoScroll);
                        return;
                    }
                    
                    // 计算滚动速度（像素/秒）
                    const scrollSpeed = 30; // 调整滚动速度
                    const delta = scrollSpeed / 60; // 基于60fps
                    
                    scrollPosition += delta;
                    
                    // 当滚动距离超过一个容器宽度时，重置位置以实现无缝滚动
                    if (scrollPosition >= containerWidth) {
                        scrollPosition -= containerWidth;
                    }
                    
                    // 应用滚动位置
                    track.style.transform = `translateX(-${scrollPosition}px)`;
                    
                    animationFrameId = requestAnimationFrame(autoScroll);
                }
                
                // 开始自动滚动
                autoScroll();
                
                // 鼠标悬停时暂停滚动
                const testimonialContainer = document.querySelector('.testimonial-container');
                testimonialContainer.addEventListener('mouseenter', () => {
                    isAutoScrolling = false;
                });
                
                testimonialContainer.addEventListener('mouseleave', () => {
                    isAutoScrolling = true;
                });
                
                // 暴露控制方法
                return {
                    setAutoScrolling: (value) => {
                        isAutoScrolling = value;
                    },
                    getScrollPosition: () => scrollPosition,
                    setScrollPosition: (position) => {
                        scrollPosition = position;
                        track.style.transform = `translateX(-${scrollPosition}px)`;
                    },
                    getContainerWidth: () => containerWidth
                };
            }
            
            // 初始化手动滚动控制
            function initManualScrollControls() {
                const scrollLeftBtn = document.getElementById('scrollLeft');
                const scrollRightBtn = document.getElementById('scrollRight');
                const animationControls = initScrollAnimation();
                const containerWidth = animationControls.getContainerWidth();
                let isDragging = false;
                let startX;
                let scrollStartX;
                
                // 点击滚动控制
                scrollLeftBtn.addEventListener('click', () => {
                    const currentPos = animationControls.getScrollPosition();
                    let newPos = currentPos - 300; // 向左滚动300px
                    if (newPos < 0) newPos = containerWidth + newPos;
                    animationControls.setScrollPosition(newPos);
                });
                
                scrollRightBtn.addEventListener('click', () => {
                    const currentPos = animationControls.getScrollPosition();
                    let newPos = currentPos + 300; // 向右滚动300px
                    if (newPos > containerWidth) newPos = newPos - containerWidth;
                    animationControls.setScrollPosition(newPos);
                });
                
                // 鼠标拖动滚动
                const track = document.getElementById('testimonialTrack');
                track.addEventListener('mousedown', (e) => {
                    isDragging = true;
                    startX = e.clientX;
                    scrollStartX = animationControls.getScrollPosition();
                    animationControls.setAutoScrolling(false);
                    track.style.cursor = 'grabbing';
                });
                
                document.addEventListener('mousemove', (e) => {
                    if (!isDragging) return;
                    
                    const dx = e.clientX - startX;
                    let newPos = scrollStartX - dx;
                    
                    // 确保位置在有效范围内
                    if (newPos < 0) newPos = containerWidth + newPos;
                    if (newPos > containerWidth) newPos = newPos - containerWidth;
                    
                    animationControls.setScrollPosition(newPos);
                });
                
                document.addEventListener('mouseup', () => {
                    isDragging = false;
                    animationControls.setAutoScrolling(true);
                    track.style.cursor = 'grab';
                });
                
                document.addEventListener('mouseleave', () => {
                    isDragging = false;
                    animationControls.setAutoScrolling(true);
                    track.style.cursor = 'grab';
                });
                
                // 触摸设备支持
                track.addEventListener('touchstart', (e) => {
                    isDragging = true;
                    startX = e.touches[0].clientX;
                    scrollStartX = animationControls.getScrollPosition();
                    animationControls.setAutoScrolling(false);
                }, { passive: true });
                
                document.addEventListener('touchmove', (e) => {
                    if (!isDragging) return;
                    
                    const dx = e.touches[0].clientX - startX;
                    let newPos = scrollStartX - dx;
                    
                    // 确保位置在有效范围内
                    if (newPos < 0) newPos = containerWidth + newPos;
                    if (newPos > containerWidth) newPos = newPos - containerWidth;
                    
                    animationControls.setScrollPosition(newPos);
                }, { passive: true });
                
                document.addEventListener('touchend', () => {
                    isDragging = false;
                    animationControls.setAutoScrolling(true);
                });
            }

            // 设置事件监听器
            function setupEventListeners() {
                const customerModal = document.getElementById('customerModal');
                const closeButtons = document.querySelectorAll('.close-btn');
                
                // 为每个客户案例卡片添加点击事件
                document.addEventListener('click', function(e) {
                    const card = e.target.closest('.customer-card');
                    if (card) {
                        const id = parseInt(card.getAttribute('data-id'));
                        showCustomerDetail(id);
                    }
                });
                
                // 关闭弹窗功能
                closeButtons.forEach(button => {
                    button.addEventListener('click', function() {
                        customerModal.classList.remove('active');
                        document.body.style.overflow = ''; // 恢复背景滚动
                    });
                });
                
                // 点击弹窗外部关闭弹窗
                window.addEventListener('click', function(event) {
                    if (event.target === customerModal) {
                        customerModal.classList.remove('active');
                        document.body.style.overflow = '';
                    }
                });
            }

            // 显示客户详情弹窗
            function showCustomerDetail(id) {
                const customer = customerData.find(item => item.id === id);
                const customerModal = document.getElementById('customerModal');
                
                if (customer && customerModal) {
                    document.getElementById('modalImage').src = customer.image;
                    document.getElementById('modalImage').alt = customer.name;
                    document.getElementById('modalName').textContent = customer.name;
                    document.getElementById('modalQuote').textContent = customer.quote;
                    document.getElementById('modalDetails').textContent = customer.details;
                    document.getElementById('modalTag1').textContent = customer.tags[0] || '';
                    document.getElementById('modalTag2').textContent = customer.tags[1] || '';
                    document.getElementById('modalTag3').textContent = customer.tags[2] || '';
                    document.getElementById('modalDate').textContent = customer.date;
                    
                    customerModal.classList.add('active');
                    document.body.style.overflow = 'hidden'; // 防止背景滚动
                }
            }

            // 暴露公共方法
            return {
                init: init,
                getCustomerData: () => [...customerData], // 返回数据副本
                addCustomer: (newCustomer) => {
                    // 简单验证新客户数据
                    if (newCustomer && newCustomer.id && !customerData.some(c => c.id === newCustomer.id)) {
                        customerData.push(newCustomer);
                        renderCustomerCases(); // 重新渲染
                        return true;
                    }
                    return false;
                }
            };
        })();

        // 新闻模块 - 按ID控制显示位置，缩小版
        const NewsModule = (function() {
            // 新闻数据管理
            const newsData = [
                {
                    id: 0,
                    title: "金秋送爽，双节将至放假通知",
                    date: "2025-09-25",
                    image: "https://img.cdn1.vip/i/68d3f57f0d351_1758721407.webp",
                    content: "金秋送爽，双节将至。为确保全体人员度过一个安全、祥和的假期，同时保障公司业务在假期期间有序衔接，结合以往黄金周（预计 9 月 28 日至 10 月 9 日将出现大范围道路拥堵）、合作企业放假及无装卸工等实际情况，经公司慎重研究，现将国庆节、中秋节期间的放假安排及相关事宜通知如下：",
                    tags: ["国庆节", "中秋节"],
                    readMoreLink: "https://yize1.atomgit.net/yize/gq.html"
                },
                {
                    id: 1,
                    title: "《致敬引领者，共筑未来路》",
                    date: "2025-09-23",
                    image: "https://i.imgs.ovh/2025/09/23/7APTKh.png",
                    content: "回望过去的日子，我们益泽供应链的大家庭之所以能不断壮大，一路前行，离不开在座每一位师傅的辛勤付出。而其中，更有这样一群可敬可爱的人，他们不仅自己技艺精湛，更将宝贵的经验无私分享；他们不仅自己安全驾驶，更用温暖的双手牵引新人快速成长；他们不仅认同我们共同的事业，更用真诚的推荐吸引更多志同道合的伙伴加入。",
                    tags: ["政策解读", "企业应对"],
                    readMoreLink: "https://yize1.atomgit.net/yize/huodong.html"
                },
                {
                    id: 2,
                    title: "智能供应链管理系统2023款正式发布，功能升级不加价",
                    date: "2023-06-10",
                    image: "https://img.cdn1.vip/i/68d3f57f0d351_1758721407.webp",
                    content: "益泽供应链今日正式发布了智能供应链管理系统2023款。该版本在原有基础上进行了多项功能升级，包括新增AI预测分析模块、优化移动端用户体验、加强数据安全防护等。值得一提的是，尽管功能大幅提升，2023款系统仍保持原有价格不变。",
                    tags: ["产品发布", "系统升级"],
                    readMoreLink: "https://yize1.atomgit.net/yize/huodong.html"
                },
                {
                    id: 3,
                    title: "致敬引领者，共筑未来路邀请函",
                    date: "2025-09-26",
                    image: "https://img.cdn1.vip/i/68d5e6a79da23_1758848679.webp",
                    content: "您好！在益泽供应链的发展历程中，每一位辛勤付出的司机师傅都是我们最宝贵的财富。而您，作为团队中的佼佼者，以专业的驾驶技术、严谨的工作态度和无私的经验分享，成为了大家心中的 「引领者」。为表彰您的卓越贡献，我们诚挚邀请您参加《致敬引领者，共筑未来路》专属荣誉盛典，与我们共同见证成长，共话未来发展。",
                    tags: ["致敬引领者", "共筑未来路","邀请函"],
                    readMoreLink: "https://yize1.atomgit.net/yize/yqh.html"
                },
                {
                    id: 4,
                    title: "益泽供应链6月促销活动：签约即送3个月免费服务",
                    date: "2023-06-01",
                    image: "https://picsum.photos/id/1074/100/100",
                    content: "为回馈新老客户的支持，益泽供应链推出6月特惠活动。活动期间，新签约客户可享受3个月免费服务，老客户推荐新客户成功签约可获得1个月免费使用权。",
                    tags: ["促销活动", "客户回馈"],
                    readMoreLink: "https://yize1.atomgit.net/yize/huodong.html"
                },
                {
                    id: 5,
                    title: "关于错峰出发的通知",
                    date: "2025-10-08",
                    image: "https://picsum.photos/id/1075/100/100",
                    content: "中秋、国庆双节的欢乐氛围还未消散，但我们的运输任务又已在前方召唤。相信大家都做好了再次投身工作的准备，益泽供应链为拥有你们这样敬业的伙伴而倍感自豪！",
                    tags: ["出行高峰", "错峰出行"],
                    readMoreLink: "https://yize1.atomgit.net/yize/cf.html"
                },
                {
                    id: 6,
                    title: "全球供应链韧性建设论坛将于下月召开",
                    date: "2023-07-10",
                    image: "https://picsum.photos/id/1076/600/400",
                    content: "由益泽供应链主办的全球供应链韧性建设论坛确定于下月15日在上海召开，本次论坛将聚焦后疫情时代全球供应链面临的挑战与机遇。",
                    tags: ["行业论坛", "供应链韧性"],
                    readMoreLink: "https://yize1.atomgit.net/yize/huodong.html"
                },
                {
                    id: 7,
                    title: "供应链数字化转型成功案例分析",
                    date: "2023-07-05",
                    image: "https://picsum.photos/id/1077/600/400",
                    content: "本文深入分析了三家不同行业企业成功实现供应链数字化转型的案例，探讨了它们在转型过程中的策略、挑战与成果。",
                    tags: ["数字化转型", "案例分析"],
                    readMoreLink: "https://yize1.atomgit.net/yize/huodong.html"
                },
                {
                    id: 8,
                    title: "全球供应链面临的挑战与应对策略分析报告",
                    date: "2023-05-20",
                    image: "https://picsum.photos/id/1078/100/100",
                    content: "本报告分析了当前全球供应链面临的主要挑战，包括地缘政治风险、原材料价格波动、劳动力短缺等问题，并提出了相应的应对策略。",
                    tags: ["全球供应链", "风险管理"],
                    readMoreLink: "https://yize1.atomgit.net/yize/huodong.html"
                },
                {
                    id: 9,
                    title: "人工智能如何重塑现代供应链管理模式",
                    date: "2023-05-15",
                    image: "https://picsum.photos/id/1079/100/100",
                    content: "人工智能技术正以前所未有的速度重塑供应链管理模式，从需求预测到库存管理，从物流优化到质量控制，AI在供应链各个环节都发挥着越来越重要的作用。",
                    tags: ["人工智能", "供应链创新"],
                    readMoreLink: "https://yize1.atomgit.net/yize/huodong.html"
                },
                {
                    id: 10,
                    title: "益泽供应链与多家物流企业达成战略合作",
                    date: "2023-08-15",
                    image: "https://picsum.photos/id/1080/100/100",
                    content: "近日，益泽供应链宣布与多家知名物流企业达成战略合作，将共同打造覆盖全国的智能物流网络，提升供应链整体效率，降低物流成本，为客户提供更优质的服务体验。",
                    tags: ["战略合作", "物流网络", "服务升级"],
                    readMoreLink: "https://yize1.atomgit.net/yize/huodong.html"
                }
            ];

            // 初始化新闻模块
            function init() {
                // 渲染新闻条目
                renderNewsItems();
                // 设置事件监听器
                setupEventListeners();
            }
            
            // 渲染新闻条目 - 按ID控制显示位置，缩小版
            function renderNewsItems() {
                const imageContainer = document.getElementById('news-image-container');
                const listContainer = document.getElementById('news-list');
                
                if (!imageContainer || !listContainer) return;
                
                // 清空容器
                imageContainer.innerHTML = '';
                listContainer.innerHTML = '';
                
                // 筛选出ID为0,1,2的新闻显示在左侧（大图样式）
                const leftNews = newsData.filter(news => [0, 1, 2].includes(news.id));
                leftNews.forEach(news => {
                    const newsItem = document.createElement('div');
                    newsItem.className = 'bg-white rounded-lg p-3 shadow-sm hover:shadow-md transition-all duration-300 hover:-translate-y-1 news-item-hover';
                    newsItem.setAttribute('data-news-id', news.id);
                    
                    newsItem.innerHTML = `
                        <img src="${news.image}" alt="${news.title}" class="w-full h-36 object-cover rounded shadow-sm">
                        <h3 class="font-medium mt-2 text-sm hover:text-blue-600 transition-custom">${news.title}</h3>
                        <p class="text-gray-500 text-xs mt-1">${news.date}</p>
                    `;
                    
                    imageContainer.appendChild(newsItem);
                });
                
                // 筛选出ID为3-10的新闻显示在右侧（列表样式）
                const rightNews = newsData.filter(news => news.id >= 3 && news.id <= 10);
                rightNews.forEach(news => {
                    const newsItem = document.createElement('div');
                    newsItem.className = 'flex space-x-3 news-item-hover mb-4';
                    newsItem.setAttribute('data-news-id', news.id);
                    
                    newsItem.innerHTML = `
                        <img src="${news.image}" alt="${news.title}" class="w-16 h-16 object-cover rounded">
                        <div>
                            <h3 class="font-medium text-sm hover:text-blue-600 transition-custom">${news.title}</h3>
                            <p class="text-gray-500 text-xs mt-1">${news.date}</p>
                        </div>
                    `;
                    
                    listContainer.appendChild(newsItem);
                });
            }

            // 显示新闻详情弹窗
            function showNewsDetail(id) {
                const news = newsData.find(item => item.id === id);
                const newsModal = document.getElementById('newsModal');
                
                if (news && newsModal) {
                    // 填充弹窗内容
                    document.getElementById('newsModalImage').src = news.image;
                    document.getElementById('newsModalImage').alt = news.title;
                    document.getElementById('newsModalTitle').textContent = news.title;
                    document.getElementById('newsModalDate').textContent = news.date;
                    document.getElementById('newsModalContent').textContent = news.content;
                    
                    // 生成标签
                    const tagsContainer = document.getElementById('newsModalTags');
                    tagsContainer.innerHTML = '';
                    news.tags.forEach(tag => {
                        const tagElement = document.createElement('span');
                        tagElement.className = 'bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full';
                        tagElement.textContent = tag;
                        tagsContainer.appendChild(tagElement);
                    });
                    
                    // 生成查看更多链接
                    const readMoreContainer = document.getElementById('news-read-more-container');
                    readMoreContainer.innerHTML = '';
                    if (news.readMoreLink) {
                        const linkElement = document.createElement('a');
                        linkElement.href = news.readMoreLink;
                        linkElement.className = 'read-more-link';
                        linkElement.target = '_blank';
                        linkElement.innerHTML = '<i class="fa fa-external-link mr-1"></i>查看更多详情';
                        readMoreContainer.appendChild(linkElement);
                    }
                    
                    // 显示弹窗
                    newsModal.classList.add('active');
                    document.body.style.overflow = 'hidden'; // 防止背景滚动
                }
            }

            // 设置事件监听器
            function setupEventListeners() {
                const newsModal = document.getElementById('newsModal');
                
                // 新闻条目点击事件
                document.addEventListener('click', function(e) {
                    const newsItem = e.target.closest('[data-news-id]');
                    if (newsItem) {
                        const id = parseInt(newsItem.getAttribute('data-news-id'));
                        showNewsDetail(id);
                    }
                });
                
                // 关闭弹窗功能
                document.querySelectorAll('.close-btn').forEach(button => {
                    button.addEventListener('click', function() {
                        newsModal.classList.remove('active');
                        document.body.style.overflow = ''; // 恢复背景滚动
                    });
                });
                
                // 点击弹窗外部关闭弹窗
                window.addEventListener('click', function(event) {
                    if (event.target === newsModal) {
                        newsModal.classList.remove('active');
                        document.body.style.overflow = '';
                    }
                });
            }

            // 暴露公共方法
            return {
                init: init,
                getNewsData: () => [...newsData], // 返回数据副本
                addNews: (newNews) => {
                    // 简单验证新闻数据
                    if (newNews && newNews.id && !newsData.some(n => n.id === newNews.id)) {
                        newsData.unshift(newNews); // 添加到开头
                        renderNewsItems(); // 重新渲染
                        return true;
                    }
                    return false;
                },
                showNewsDetail: showNewsDetail
            };
        })();

        // 页面主模块 - 负责协调其他模块
        const PageModule = (function() {
            // 初始化页面
            function init() {
                // 按照前端模块顺序初始化各个功能模块
                CarouselModule.init();
                CustomerCasesModule.init();
                NewsModule.init();
                
                // 初始化回到顶部按钮
                initBackToTop();
                
                // 初始化平滑滚动
                initSmoothScroll();
                
                // 监听窗口大小变化，重新计算容器宽度并重新渲染卡片
                window.addEventListener('resize', function() {
                    // 延迟执行以确保DOM尺寸稳定
                    clearTimeout(this.resizeTimer);
                    this.resizeTimer = setTimeout(() => {
                        CustomerCasesModule.init();
                    }, 100);
                });
            }

            // 初始化回到顶部按钮
            function initBackToTop() {
                const backToTopButton = document.getElementById('backToTop');
                
                // 初始隐藏
                backToTopButton.style.display = 'none';
                
                window.addEventListener('scroll', () => {
                    if (window.pageYOffset > 300) {
                        backToTopButton.style.display = 'flex';
                    } else {
                        backToTopButton.style.display = 'none';
                    }
                });
                
                backToTopButton.addEventListener('click', () => {
                    window.scrollTo({
                        top: 0,
                        behavior: 'smooth'
                    });
                });
            }
            
            // 初始化平滑滚动
            function initSmoothScroll() {
                document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                    anchor.addEventListener('click', function (e) {
                        e.preventDefault();
                        
                        const targetId = this.getAttribute('href');
                        if (targetId === '#') return;
                        
                        const targetElement = document.querySelector(targetId);
                        if (targetElement) {
                            targetElement.scrollIntoView({
                                behavior: 'smooth'
                            });
                        }
                    });
                });
            }

            // 暴露公共方法
            return {
                init: init
            };
        })();

        // DOM元素加载完成后初始化页面
        document.addEventListener('DOMContentLoaded', function() {
            PageModule.init();
        });
    </script>
</body>
</html>
